<?php

//直接传喜欢的值
$id=$_SESSION['id'];     //这是喜欢文章的id
$a=$oMysql->get("SELECT lvek,articleviews FROM wenzhang WHERE `id`=$id");
$i=$a[0]['articleviews']+1;
$oMysql->gai('wenzhang',array('articleviews'=>$i),"id=$id");
//echo json_encode($a[0]);